Discrete exterior calculus